try { DB::table('user_')->where('column',$something)->delete(); $queryStatus = "Successful"; } catch(Exception $e) { $queryStatus = "Not success"; }